﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CGLib
{
    /// <summary>
    /// Provides game initialisation info.
    /// </summary>
    public class GameInfo
    {
        private Player[] players;
        private CGLib.Enums.SvrType svrType;

        /// <summary>
        /// Array of players in this game.
        /// </summary>
        public Player[] Players
        {
            get { return players; }
        }

        /// <summary>
        /// The main player.
        /// </summary>
        public Player MainPlayer
        {
            get { return players[0]; }
        }

        /// <summary>
        /// The type of server the player is on.
        /// </summary>
        public CGLib.Enums.SvrType ServerType
        {
            get { return svrType; }
        }

        public GameInfo(Player[] players, CGLib.Enums.SvrType svrType)
        {
            this.players = players;
            this.svrType = svrType;
        }
    }
}
